#ifndef __SCNS_XPT2046_H__
#define __SCNS_XPT2046_H__

#include "ScnsConfig.h"

#if defined(SCNS_XPT2046_ENABLE)&&SCNS_XPT2046_ENABLE==1

#include "ScnsYing.h"
#include "ScnsBspXpt2046.h"

typedef struct
{
    uint8 down;
    Point p;
}ScnsXpt2046Result;

extern ScnsXpt2046Result scnsXpt2046Result[SCNS_XPT2046_MAX];

extern ScnsStatus scnsXpt2046Init(ScnsXpt2046Enum xptN);
extern void scnsXpt2046Scan(ScnsXpt2046Enum xptN);
#if defined(SCNS_LCD_ENABLE)&&SCNS_LCD_ENABLE==1

#include "ScnsLcd.h"

extern void scnsXptCorrection(ScnsXpt2046Enum xptN,ScnsLcdLayer layN,Point plu,Point prd);
#endif
#endif
#endif
